package com.liangsong.designpattern.composite;

public class Emp extends EmpComponent{
    private String name;
    public Emp(String name){
        this.name = name;
    }
    @Override
    public void showAllName() {
        System.out.println(name);
    }
}
